<!--#include virtual="src/layuiadmin/lib/public.asp"-->
<!DOCTYPE html>
<html>
<head>
  <title>科研数据管理</title>
<%
	easp.include "h.asp"
%>
<link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</head>
<body>
<%
	pi(session("username"))
%>      <div class="layui-form layui-card-header layuiadmin-card-header-auto">
        <div class="layui-form-item">
          <div class="layui-inline">
			  <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="exp">导出</button>
          </div>
			<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">个人介绍</label>
			<div class="layui-input-block">
			  <textarea name="pi" placeholder="" class="layui-textarea" ><%=easp.var("pi")%></textarea>
			  <input name="username" type="hidden" value="<%=session("username")%>">
			</div>
			</div> 
          <div class="layui-inline">
			  <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="pi">保存</button>
          </div>	
        </div>
      </div>
	<%
		Easp.Echo js1("panel1.html","gjj","1、国家级课题")
		Easp.Echo js1("panel1.html","sbj","2、省部级课题")
		Easp.Echo js1("panel1.html","cg","3、成果（鉴定）、奖励")
		Easp.Echo js1("panel1.html","lw","4、论文")
		Easp.Echo js1("panel1.html","zl","5、专利")
		Easp.Echo js1("panel1.html","zz","6、著作")
		Easp.Echo js1("panel1.html","hdry","7、获得荣誉")
		Easp.Echo js1("panel1.html","hybz","8、主持或参与制定行业标准")
	%> 

  <script src="../../../layuiadmin/layui/layui.js"></script>  
  <script>
  layui.config({
    base: '../../../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'useradmin', 'table'], function(){
    var $ = layui.$,form = layui.form,admin = layui.admin,table = layui.table;

    form.on('submit(exp)', function(data){
        var field = data.field; 
		$.post(layui.setter.base + 'lib/reg.asp?now=' + new Date().getTime(), {
			action: "qry2word",
			field
		},
		function(data) {
			if (data == '1') {
				layer.msg("成功!!");
			} else {
				layer.msg("失败！！ "+data);
			}
		});
    })
    form.on('submit(pi)', function(data){
        var field = data.field; 
		$.post(layui.setter.base + 'lib/reg.asp?now=' + new Date().getTime(), {
			action: "savepi",
			field
		},
		function(data) {
			if (data == '1') {
				layer.msg("成功!!");
			} else {
				layer.msg("失败！！ "+data);
			}
		});
    })	
	<%
		dim elem
		elem="zl"
	%>
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',    title: 'ID',            width: 60,            sort: true,			hide:false},
        {field: 'mc',    title: '专利名称',            width: 120        },	
        {field: 'zlh',   title: '专利号',            width: 90        },		
        {field: 'syqr',  title: '全部专利所有权人',            width: 90        },	
        {field: 'sj',    title: '时间',            width: 90        },			
        {field: 'sqsq',  title: '申请/授权',            width: 120        },		
        {field: 'pm',    title: '排名',            width: 120        },		
        {fixed: 'right', width: 200,            align: 'center',            toolbar: '#bar_<%=elem%>'        }]],
        id: '<%=elem%>',        limit: 10,        page: true,        height: 275
    });
	<%elem="lw"%>	
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',            title: 'ID',            width: 60,            sort: true,			hide:false        },
        {field: 'mc',            title: '论文名称',            width: 120        },	
        {field: 'qkm',            title: '期刊名',            width: 90        },		
        {field: 'njqy',            title: '年卷期页',            width: 90        },	
        {field: 'qkjb',            title: '期刊级别',            width: 90        },			
        {field: 'zz',            title: '全部作者',            width: 120        },		
        {field: 'pmjs',            title: '排名、角色',            width: 120        },		
        {fixed: 'right',            width: 200,            align: 'center',            toolbar: '#bar_<%=elem%>'        }]],
        id: '<%=elem%>',        limit: 10,        page: true,        height: 275
    });	
	<%elem="hdry"%>
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',title: 'ID',width: 60,sort: true,hide:false},
        <%
			dim fielda,fielda2,i
			fielda=split(easp.var("dy_hdry_f"),",")
			fielda2=split(easp.var("dy_hdry_n"),",")
			for i=0 to ubound(fielda)
				Easp.Echo js3("tb1.js",fielda(i),fielda2(i),100)
			next
		%>
        {fixed: 'right',width: 120,align: 'center',toolbar: '#bar_<%=elem%>'}]],
        id: '<%=elem%>',limit: 10,page: true,height: 275
    });	
	<%elem="hybz"%>
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',title: 'ID',width: 60,sort: true,hide:false},
        <%

			fielda=split(easp.var("dy_hybz_f"),",")
			fielda2=split(easp.var("dy_hybz_n"),",")
			for i=0 to ubound(fielda)
				Easp.Echo js3("tb1.js",fielda(i),fielda2(i),100)
			next

		%>
        {fixed: 'right',width: 120,align: 'center',toolbar: '#bar_<%=elem%>'}]],
        id: '<%=elem%>',limit: 10,page: true,height: 275
    });
	<%elem="zz"%>
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',title: 'ID',width: 60,sort: true,hide:false},
        <%

			fielda=split(easp.var("dy_zz_f"),",")
			fielda2=split(easp.var("dy_zz_n"),",")
			for i=0 to ubound(fielda)
				Easp.Echo js3("tb1.js",fielda(i),fielda2(i),100)
			next

		%>
        {fixed: 'right',width: 120,align: 'center',toolbar: '#bar_<%=elem%>'}]],
        id: '<%=elem%>',limit: 10,page: true,height: 275
    });		
	<%elem="cg"%>	
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',            title: 'ID',            width: 60,            sort: true,			hide:false        },
        {field: 'mc',            title: '成果名称',            width: 120        },	
        {field: 'mcdj',          title: '获奖名称及等级',            width: 90        },		
        {field: 'pjdw',          title: '评奖单位',            width: 90        },	
        {field: 'hjsj',          title: '鉴定或获奖时间',            width: 90        },			
        {field: 'wcz',           title: '全部完成者',            width: 120        },		
        {field: 'pm',            title: '排名',            width: 120        },		
        {fixed: 'right',            width: 200,            align: 'center',            toolbar: '#bar_<%=elem%>'        }]],
        id: '<%=elem%>',        limit: 10,        page: true,        height: 275
    });	
	<%elem="gjj"%>	
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',            title: 'ID',            width: 60,            sort: true,			hide:false        },
        {field: 'mc',            title: '课题名称',            width: 120        },	
        {field: 'bh',            title: '课题编号',            width: 90        },		
        {field: 'ly',            title: '来源',            width: 90        },	
        {field: 'qzsj',          title: '起止时间',            width: 90        },			
        {field: 'jf',            title: '经费',            width: 120        },		
        {fixed: 'right',            width: 200,            align: 'center',            toolbar: '#bar_<%=elem%>'        }]],
        id: '<%=elem%>',        limit: 10,        page: true,        height: 275
    });
	<%elem="sbj"%>	
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',    title: 'ID',            width: 60,            sort: true,			hide:false        },
        {field: 'mc',    title: '课题名称',            width: 120        },	
        {field: 'bh',    title: '课题编号',            width: 90        },		
        {field: 'ly',    title: '来源',            width: 90        },	
        {field: 'qzsj',  title: '起止时间',            width: 90        },			
        {field: 'jf',    title: '经费',            width: 120        },		
        {fixed: 'right',    width: 200,            align: 'center',            toolbar: '#bar_<%=elem%>'        }]],
        id: '<%=elem%>',limit: 10,        page: true,        height: 240
    });	
	<%
		Easp.Echo js1("add1.js","zl","添加我的专利")
		Easp.Echo js1("add1.js","cg","添加我的成果")
		Easp.Echo js1("add1.js","lw","添加我的论文")
		Easp.Echo js1("add1.js","gjj","添加我的国家级课题")
		Easp.Echo js1("add1.js","sbj","添加我的省级课题")
		Easp.Echo js1("add1.js","zz","添加我的著作")
		Easp.Echo js1("add1.js","hdry","添加我的荣誉")
		Easp.Echo js1("add1.js","hybz","添加我的行标")

		Easp.Echo js1("edit1.js","hybz","编辑我的行标")
		Easp.Echo js1("edit1.js","hdry","编辑我的荣誉")
		Easp.Echo js1("edit1.js","zz","编辑我的著作")
		Easp.Echo js1("edit1.js","zl","编辑我的专利")
		Easp.Echo js1("edit1.js","gjj","编辑我的课题")
		Easp.Echo js1("edit1.js","sbj","编辑我的课题")
		Easp.Echo js1("edit1.js","cg","编辑我的成果")
		Easp.Echo js1("edit1.js","lw","编辑我的论文")
	%>	
  });
  </script>
</body>
</html>
